FORMULA_SURFACE

Description

This element creates a surface defined by a mathematical formula (z=f(x,y)).

Common Attributes

See common elements attributes.

Specific Attributes
Name Value Type Default Value Description Comment V.

formula

a mathematical formula

Empty.

Mathematical formula for the curve.

The formula can reference any parameter, curve or surface available in the skin.

1.6

x_variable

string

x

name of the "x" variable in the formula.

You can customize the name of the traditional "x" variable in z=f(x,y) formula so that it becomes z=f(variable,y)

1.6

y_variable

string

y

name of the "y" variable in the formula.

You can customize the name of the traditional "y" variable in z=f(x,y) formula so that it becomes z=f(x,variable)

1.6

Examples

The code below creates a surface ("surf") that can be displayed on a 3D graph. The name of the x variable used in the formula is customized ("a").

    <FORMULA_CURVE  id="surf" formula="cos(a*y)" x_variable="a"/>